package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.EvaluationFlow;
import com.ytjj.qmyx.mall.model.response.EvaluationFlowResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EvaluationFlowDao {

    Integer queryEvaluationNum(@Param(value = "productId") Integer productId,
                               @Param(value = "isRecommend") Integer isRecommend);

    List<EvaluationFlow> queryEvaluationList(@Param(value = "productId") Integer productId);

    Integer queryIsReason(@Param(value = "productId") Integer productId,
                          @Param(value = "userId") Integer userId);

    Integer queryIsRecommend(@Param(value = "productId") Integer productId,
                     @Param(value = "userId") Integer userId);

    Integer queryIsEvaluationFlow(Integer productId, Integer userId);

    List<EvaluationFlow> queryDataByOrderInfoId(Integer orderInfoId);
}
